package com.cloud.job.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.job.project.model.entity.QuartzJob;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 定时任务调度表 Mapper 接口
 * </p>
 *
 * @author Sam
 * @since 2021-02-08
 */
public interface QuartzJobMapper extends BaseMapper<QuartzJob> {

    @Update("update sys_quartz_job set status = status - #{num} where job_id = #{jobId} ")
    void reduceStore(@Param("jobId") String jobId, @Param("num") int num);
}
